<template>
  <van-loading
    type="spinner"
    class="loading"
    size=20
    >
    加载中
  </van-loading>
</template>

<script>
import { Loading } from 'vant'
export default {
  name: 'Loading',
  components: {
    [Loading.name]: Loading
  }
}
</script>

<style scoped>
  .loading{
    display: block;
    text-align: center;
    height: 4rem;
    line-height: 4rem;
  }
  .van-loading__text{
    margin-left: .2rem;
 }
</style>
